import request from '@/utils/request'

// 查询新闻列表
export function listabout(query) {
    return request({
        url: '/officialWebsite/gwabouus/list',
        method: 'get',
        params: query
    })
}

// 查询新闻详细
export function getabout(aboutId) {
    return request({
        url: '/officialWebsite/gwabouus/' + aboutId,
        method: 'get'
    })
}

// 新增新闻
export function addabout(data) {
    return request({
        url: '/officialWebsite/gwabouus/saveOrUpdate',
        method: 'post',
        data: data
    })
}

// 修改新闻
export function updateabout(data) {
    return request({
        url: '/officialWebsite/gwabouus/saveOrUpdate',
        method: 'post',
        data: data
    })
}

// 删除新闻
export function delabout(aboutId) {
    return request({
        url: '/officialWebsite/gwabouus/delete-by-id',
        method: 'get',
        params: { "id": aboutId }
    })
}

export function delaboutByIds(aboutIds) {
    return request({
        url: '/work/gwabouus/delete-by-ids',
        method: 'get',
        params: { "ids": aboutIds }
    })
}

